package tpenchere.service.ws;

import java.util.List;

import javax.jws.WebParam;
import javax.jws.WebService;

import tpenchere.model.Categorie;
import tpenchere.model.Enchere;
import tpenchere.model.Produit;
import tpenchere.model.User;

@WebService(name = "EnchereWebService")
public interface IEnchereWS {

	public abstract User connect(@WebParam(name = "login") String login,@WebParam(name = "password") String password);

	public abstract Enchere saveEnchere(@WebParam(name = "enchere") Enchere enchere);

	public abstract Produit createProduit(@WebParam(name = "produit") Produit produit);

	public abstract User createUser(@WebParam(name = "user") User user);

	public abstract List<Produit> getAllProduct();

	public abstract List<Categorie> getAllRootCategorie();

	public abstract List<Produit> getCurrentProduct();

	public abstract List<Produit> getProductBy(@WebParam(name = "categorie") Categorie categorie);

	public abstract List<Produit> getProductSold();

	public abstract boolean loginUsed(@WebParam(name = "login") String login);

	public abstract Enchere getEnchere(@WebParam(name = "enchere") Enchere enchere);

	public abstract List<Enchere> getEnchereFor(@WebParam(name = "produit") Produit produit);

}